const mongoose = require('mongoose');

const OperlogSchema = new mongoose.Schema({
	user: { type: String },
	userId: { type: mongoose.Schema.Types.ObjectId, ref: 'User' },
	method: { type: String },
	url: { type: String },
	desc: { type: String },
	method: { type: String },
	requset: { type: Object },
	response: { type: Object },
});

const Operlog = mongoose.model('operlog', OperlogSchema);
module.exports = {
	Operlog
};
